package team.nmsg.ge.system.service;

import java.util.Map;

import team.nmsg.ge.system.bean.AppToken;
import team.nmsg.ge.system.bean.SysUser;
import team.nmsg.ge.system.exception.NMSTokenCantRefreshException;
import team.nmsg.ge.system.exception.NMSTokenExpireException;



/**
 * 认证  权限相关的 服务
 * @author Guodeqi
 *
 */
public interface IAuthenticationService {
	
	
	public Map<String, Object> userLogin(SysUser user);
	
	
	public boolean userLogout(AppToken token);
	
	
	public Map<String, Object> refreshToken(AppToken token);
	
	public AppToken checkClientTokenStr( String tokenStr ) throws NMSTokenExpireException , NMSTokenCantRefreshException;
	
}
